package com.input4hua.mediator.obj;

import com.input4hua.mediator.mediator.Mediator;

/**
 * Created by jiahua.hu on 2019/2/23.
 */
public class ComObjImp2 extends ComObj{

    public ComObjImp2(Mediator mediator) {
        super(mediator);
    }

    public void selfFoo(){
       //自己内部能解决的事自己做了
        System.out.println("c2 do self something");
    }

    public void depFoo(){
        //自个处理不了的，需要外部协作的，交给中介者来处理
        super.mediator.doSomething2();
    }
}
